fixed problem with capital letters in filenames.