Save map before renameworld

This commit fixes an issue where a map wouldn't copy across correctly if
/save-all wasn't executed first.