Setting some environment variables based on the detected OS.