Getting lowercase file extensions