re-adapting org-pm-publish-file