Properly using environment vars