#588 Fix for CompileTask source maps

This fixes the issue observed in #588.
Sorry, this was clearer before I flattened the commits. I combined the two versions of ```findJavaScriptFiles``` into one that works on ```ResourceCollection``` which is a common interface. This was so that I wouldn't have to fix the absolute paths in two places.