#24138 - Updated publish hooks

They now work with the new write node app that no longer requires the node paths to be reset after publishing.  Reset is left in for backwards compatibility with older versions of the app.