It's not a problem with environment variables but with some tool not understanding spaces in your paths. Take a look at the first error - it shows only a fragment of the path - a fragment beginning after the last whitespace character in the file path.