Fixed subprocess calls to raise an exception (using check_call)