some fixes to convert paths with spaces properly