Updated to use subprocess.call rather than Popen directly. Automatically
waits for command to return and checks exit status, rather than just
forking and returning like Popen.