io.directories: Add with-resource-directory word and use it.