rm Common#getenv, Common#setenv; add Common#logfile; improve failure messages