Detect environment based on the hostname again