Handle IllegalArgumentException for invalid URLs

This is particularly useful for jar-in-jar URLs beginning with rsrc:
which cause FileUtils.urlToFile to throw IllegalArgumentException.
Merge pull request #26 from jaywarrick/null-app-dirs

Handle IllegalArgumentException for invalid URLs