Merge pull request #48 from julianbadillo/master

Bug fix in closeout script
This improves the way set environment script works, also add a feature to soude the agent environment if possible
Merge pull request #50 from lucacopa/environment_fix

set environment script improvements
Merge branch 'master' of https://github.com/CMSCompOps/WmAgentScripts
for including scripts as package