workaround for mktemp lacking -d options