add for remote upgrade processes (props @SLv99)

Hopefully this will fix renaming issues when upgrading from remote services such as MainWP, ManageWP, InfiniteWP and iThemes Sync