                 return @files.splice i, 1
 
     find: (path) ->
-        _.find @files, (file) -> file.originalPath is path
+        _.find @files, (file) -> path in [file.path, file.originalPath]
 
     # (1) create an unoptimized bundle
     create: (callback) ->

        bundle.preprocess
        bundle.setProductionEnvironment
        bundle.findLinks
        bundle.orderLinks
        bundle.optimize
        bundle.rewriteHtml
        ]


    # (5) try to merge and order links from all the different files
    # in a logical way
    aggregateLinks: (self..., callback) ->
        # TODO: do we want to support smart (re)ordering or not?
        links = _(@files)
            .chain()
            .pluck('links')
