Fix a bug in fs_fileNameWithoutExtension.