Fix regex index error in install script.

The regex matched was modified in adcb8b3f to remove a group and the
reference to that group was removed, but the second group's index wasn't
properly updated.