fixes #4749 - fixed puppet env creation for non-library envs