Improved file name comparison