Add rename code back

This partially reverts commit a7db63415007c9e042cfccd9b7e106f2a21fdb53.

Renaming is used when user changes the suffix.

Test: renamed bugreport in interactive mode and verified the final
      carried the new name.

Change-Id: Ia86e7ce9d9ed71de7b4e4b0c90ee7320c50762d8
1 file changed