fixed sh detection