Allow spaces and quotes inside file paths

Escapes characters with special meaning in the shell.
Merge pull request #3 from fbonzon/master

Allow spaces and quotes inside file paths
Merge pull request #1 from vlanard/master

sync with upstream