Replace os.system with subprocess.call

The subprocess module is more flexible and will allow me to capture
stdout.