replace mktemp by unique_digest
bugfix: pass -r options to POSTLOG_SH