Allow custom logfile from env. Fixes #592