Also support renaming .jar file when updating an existing library
(cherry picked from commit fc2b9f6)