BZ-983444: fix file renaming errors at lucene index level