fix directory names for the resource files.