Fix issue with finding related files for a type that contains .. in its path.