added autocompletion env script

I believe this is the correct way to add the env script to a module. I could have used a static file instead of a template, and there is possibly something I am not thinking of at the moment.

Please let me know if there is another/better way.

This should resolve issue #1