Fixing resource lookup under Wildfly

Old code always returns null. From spec: `Returns a directory-like listing of all the paths to resources within the web application whose longest sub-path matches the supplied path argument.`

That means return files under directory, not the files.