Fix mktemp parameter to make it Mac-ompatible