update documentation about the version query flag.
refactor update environment in execs module