Fix #4555 - file rename failure.
Merge pull request #4869 from openscholar/4555-new

Fix file rename failure.