added shell=True to subprocess calls