Every time I upgrade, I have to manually edit the primary cgi files because my server requires a space between "!" and the first "/".

Is there an easier way to do to make this change? For example, I am wanting to go from 6.01 to 6.04 and can't remember which files must be edited.