handle spaces in paths

Closes #12.