Fix shell pipeline detection logic