Fix #518

Paths should be protected with quotes in case of spaces
Merge pull request #527 from DamnDam/patch-1

Problem with tree path containing spaces