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