[Modules] Add the resource-dir to the module hash.