rewrite envfile whenever something is declare()'ed in a module scoping unit