Fix variable errors in script to auto-fetch SML.