Properly determine envionment name under Windows