Turns an arg hash into an array of arguments. Useful when running command line apps with child_process.