Moved windows environment helper functions to their own module