Fix auth environ handling.