Fix puppet::server::env with config_version set

Add unit tests to show a bug and fix it.
- env Template must use @config_version and not @config_version_cmd