Detect sandbox when no cabal file is found

I want to use sandbox-environment when no cabal file is found (e.g. for haskell training, trying package, ..) .

following behavior:

in executing `ghc-mod browse` or `ghc-mod list`,

* when cabal file is found, sandbox in the same dir is used.
* otherwise, sandbox which is found first in the upper dirs is used.