fix case where files have multiple .'s