Well the steps would be this.
1. Go to Photopost admin global options set the new urls and paths and hit save.
2. edit the config files and correct paths and urls
3. rename the directory
4. sign in and in admin => storage options revert the path to pick up the global options change you did
Your way would work if ya wanna do it the harder way