Added fallback for missing envirnment config