[bugfix] Splitting extensions correctly, and from the right of the string.