#1123176 by sanduhrs - switch to mktemp instead of tempfile in upgrade script to retain CentOS out-of-the-box compatibility