commit: Fix a #'setenv bug, merge other changes from GNU's env.el.