Fix issue with sbt run where isStaticAssets was being too restrictive preventing to return files. Check that the resource is actually a file to prevent listing of the directories (url.openStream return a list of files in a string if it's a directory)