Fixes to bugs which affected the length of the name of the spectrum file used when the 'file' input option is specified, and which affected the operation of multi-pass runs.