Remove file extensions with multiple segments

Since Linguist doesn't support file extensions with multiple segments (see #1388), this PR removes all of them.
They are replaced with the last segments. For example, `.cmake.in` becomes `.in`.