Forces extensions to lowercase. Previous bug with .JPG not recognised as .jpg