Fixed env detection.
PHP ~5.4.