environs: fixes for Windows