shell escape input and output path

fixes paths with spaces e.g
Merge pull request #10 from otty/patch-1

shell escape input and output path