fix bug replacing whacks on windows environment variable parsing
remove logging and add unit test with slashes