Changed publish_dataset to make it run on different systems which may
have settings directories in different places.