Just a quick tip : this setting is stored in lastPublishCM
property of fm.ini file
Gave me some trouble recently, when language changes led to unappropriate publish folder name. Moreover, we were not able to publish anything at all )
Changing this file helped. Found via FileMonitor from sysinternals, as usual.