cerbero/shell: More subprocess exception fixes + aleb's patches
When subprocess functions raise something other than subprocess.CalledProcessError, then the returncode
and output
attributes aren't set. Handle those cases too.
Also add 3 patches from !401 (closed)
Edited by Nirbheek Chauhan