Use mktemp for temporary file in stock script