More general module file construction; capture all environment variables.
Using logging in modules script.
Handling env.sh files that have missing newlines.