[MODULES-158] Correctly iterate the resources of the class loader itself
[MODULES-167] Return file URLs for directories