remove extra periods from filenames