Fixed a minor bug where the publish command wouldn't work on server setups.