escape spaces for commands spawned