Fix for paths containing spaces

Closes #13.