Fixed problem with more than one period in file names