fix mktemp -d invocation on linux