It was required for gitlab < 9 which is not supported anymore since some time. While removinf the V1 the patch was refreshed to cleanly work with version 11.x
It now tries to find the shell via path first and then falls back to the original behavior.