fixes #2851 - refresh puppet classes on environment change