fix file_name.extension split when file name contains a dot .