Bring typo fixes from saltsack/salt#9961 into the script.