added filter for '~' in filenames

Word appends '~$' to the beginning of temporary files it creates when
the file is open.  If the user tried to calculate lesson timing with one
or more item scripts open in Word, it would crash.