         isTupleStale = true
         tuplebuildFuture = new Future()
         txtFilename = "/tmp" + "/" + set._id + ".tuple"
-        rwsFilename = config.dataTempdir + "/" + set._id + ".rws"
+        tupleFilename = config.dataTempdir + "/" + set._id + ".tuple"
         writeFileFuture = writeFile(txtFilename, set.contents)
         if config.isSSH
           scpCommand = "scp " + config.getSSHOptions() + " -P " + config.port + " " + txtFilename + " " + config.user + "@" + config.host + ":" + txtFilename

            tuplebuildErrors.push(err)
            tuplebuildFuture.return(result)
          else
            tuplebuildCommand = "echo " + txtFilename + " " + rwsFilename
            if config.isSSH
              tuplebuildCommand = config.wrapCommand(tuplebuildCommand)
            Process.exec(tuplebuildCommand, Meteor.bindEnvironment((err, stdout, stderr) ->

            scpFuture.return(result)
          ))
          scpFuture.wait()
        rmCommand = "rm -f " + tupleFilename
        if config.isSSH
          rmCommand = config.wrapCommand(rmCommand)
        rmFuture = new Future()
