don't stat twice just for a log msg; minor rename, log, whsp
err if name has a path separator

mv anon fn to named function declaration
special case for name == "." when source is a file

minor re-work of if/thens
comment edit
prep for better (y)npmi tests
minor noop