Bugfix: error when path has spaces