added parameter arg and removed it from command
replaced exec with spawn
don't escape path, since spawn should handle this for us