use subprocess instead of os.system to avoid issues with space in the paths