Tweak env config and fix require error handling re: #13