Stdlib cleanup

Some last changes before the direnv 2.0 release. @pwaller do you want to have a look ?