Set environment variables based on OS type