Fix SPLIT_COMMIT placeholder replacement in fork
The previous replacement logic was broken - it was mangling the string
by splitting on 'S' instead of replacing the literal "SPLIT_COMMIT".
Simplified to a straightforward prefix check and substring replacement.