improve logging on directory permission errors during publish