Add the missing env() call for non-rewrite systems.