Fix check for availability of a haskell session