Fixed --file and cross-origin resource files when using istanbul

--file wasn't working.
Non-javascript resource files weren't being allowed when generating code coverage with istanbul.