[BUGFIX] Use strtolower for file extensions