fix check if shell is a callable