Fixed issue: Rollback $_SERVER instead getenv()

Fixed #564 issue