shell escape input and output path

fixes paths with spaces e.g