Fixes #145 - Correctly escape root when it has spaces in it

(I think) that this PR should fix 145 where root paths with spaces in were not being escaped correctly.