fixed shell detection