Fix spawn_tee
Improved shell command escaping