added workaround for badly formatted environment variables on windows and reinstated file checks
added workaround for badly formatted environment variables on windows and reinstated file checks

ckod3/mayaseed