Added support for "-dr" flag

Debug renaming: can be used to help troubleshooting issues with
application going defunct after renaming.