Fix a typo and remove an unnecessary Popen command.