def tmp_modules_dir
      if @tmp_modules_dir.nil? || !File.exist?(@tmp_modules_dir)
        tmp_path = File.expand_path(File.join(temporary_environment_path, 'modules'))
        FileUtils.mkdir_p(tmp_path)
        @tmp_modules_dir = tmp_path
      end
      @tmp_modules_dir
    end
def tmp_modules_dir
      if @tmp_modules_dir.nil? || !File.exist?(@tmp_modules_dir)
        tmp_path = File.expand_path(File.join(temporary_environment_path, 'modules'))
        FileUtils.mkdir_p(tmp_path)
        @tmp_modules_dir = tmp_path
      end
      @tmp_modules_dir
    end
creates a tmp module directory so puppet can work correctly