Fix directory version number can't remove

Fix filename_mode = versionless directory version number can't remove