fixes #4699 - support Puppet environments API for directory envs