Fix default assignment in spawn_command

Pass default values as second argument so it's possible to override it.