fix pand env on macosx