avoid misprocessing in the case where the filename argument contains more than one period. Submitted by: micke@dynas.se (Mikael Hybsch)