file-name-directory consults this variable for alternative strategies, which is unnecessary work. (file!) won't (and should never be used in any context where it could) return anything but a simple file path.