potentially resolving accidental resolution of directory names that have valid extensions