Clean the main environment

A first commit, Pack the main environment, config file path and dry run mode.
And a second commit, add `Error:` to error message.