Compare extension correctly (match the dot)