         #}
       } ]
 
-    aceBasePath = [ opts.baseurl, THIRDPARTY_OUTDIR, 'ace' ].join '/'
+    aceBasePath = "#{opts.baseurl}/#{THIRDPARTY_OUTDIR}/ace"
 
     opts_ =
       basedir    : opts.basedir


      manifest.styles.forEach (basename) ->
        dir = path.join manifest.basedir, basename
        globs = [ path.join dir, '**', '*.' + STYLES_EXTENSION ]
        globs.push "!#{commons}"


          if not opts.watchJs
            throw err
          else
            errString = JSON.stringify String err
            src = "console.error('#{errString}')"
            fs.writeFile outfile, src, (err) ->
              if err
                console.error err # wtf
              else
                console.log "written error to #{outfile}"
        else

          if opts.extractJsSourcemaps
            s = fs.createWriteStream outfile
            asStream(src).pipe(exorcist(opts.jsSourcemapsOutfile)).pipe(s)

            s.once 'finish', ->
              secs = ((Date.now() - start)/1000).toFixed 2
              msg = "written #{outfile} (#{secs})"
              console.log msg
              console.log "extracted source maps to #{opts.jsSourcemapsOutfile}"
              if not opts.watchJs
                done()
              else
                notify 'scripts', msg

            s.on 'error', (err) ->
              if not opts.watchJs
                throw err
              else
                console.error err

          else

            fs.writeFile outfile, src, (err, res) ->
              if err
                if not opts.watchJs
                  throw err
                else
                  console.error err

              else
                secs = ((Date.now() - start)/1000).toFixed 2
                msg = "#{pretty(src.length)} written to #{outfile} (#{secs})"
                console.log msg

                if not opts.watchJs
                  done()
                else
