 
       iterator = (remote, nextDownload) =>
         local = hash[remote]
-        dir   = _path.resolve('./dist', _path.dirname(local))
+        dir   = _path.resolve('.#{_path.sep}dist', _path.dirname(local))
 
         wrench.mkdirSyncRecursive(dir)
 
         agent.get(remote).end (response) =>
           #writeStream.write(response.text) if writeStream
 
-          path = "./dist/#{local}"
+          path = ".#{_path.sep}dist#{_path.sep}#{local}"
           fs.writeFile path, response.text, =>
             process.nextTick nextDownload
 


      iterator = (remote, nextDownload) =>
        local = hash[remote]
        path = "./dist/#{local}"
        grunt.helper 'upload2GitHub', path, local, nextUpload

      Tower.async keys, iterator, next

      fs.readFile bundlePath, 'utf-8', (error, content) =>
        require('mint').uglifyjs content, {}, (error, content) ->
          bundle      = 'tower.dependencies.min.js'
          bundlePath  = '.#{_path.sep}dist#{_path.sep}' + bundle
          fs.writeFile bundlePath, content, =>
            process.nextTick =>
              grunt.helper 'upload2GitHub', bundlePath, bundle, =>
