fix shell detection