 preprocessPkg = (pkg, type) =>
   obj = {}
   for filename in @assets[type][pkg]
-    fullPath = path.resolve process.cwd() + '/' + filename
+    fullPath = path.resolve @appDir + '/' + filename
     contents = if fileHasChanged(fullPath) or not @_preprocessedCache[filename]?
                  data = fs.readFileSync(fullPath).toString()
                  @_preprocessedCache[filename] = preprocess(data, filename)

      for pkg, filenames of @assets.css
        for filename in filenames
          if req.url.replace(/^\/assets\/|.(?!.*\.).*/g, '') is filename.replace(/.(?!.*\.).*/, '')
            contents = fs.readFileSync(path.resolve process.cwd() + '/' + filename).toString()
            contents = preprocess contents, filename
            res.end contents
            return

  expandAssetGlobs()

  # Config defaults
  @appDir = (if options.appDir? then options.appDir else process.cwd())
  @publicDir = path.resolve(@appDir, options.publicDir || 'public')
  @mode = options.mode ? switch process.env.NODE_ENV
    when 'staging' then 'production'
    when 'production' then 'production'
