paths-with-spaces fixes; consistent quoting, trailing slash on Windows escape issue