Adding support for directory based modules in FilenamesResource