Fixes to publish.php

Fixed reference to settings config file in publish.php that was causing upload errors