Problem with tree path containing spaces

Paths should be protected with quotes in case of spaces

Fixes #518