Update mktemp call to be compatable with Linux