Fix test_env on Windows (string comparison failed on \ vs / path delimiter comparisons).
Merge pull request #2605 from juj/fix_test_env

Fix test_env and test_environ on Windows.