Fix guessing of cabal-process-type when set to 'auto

See #348
Added nix-shell-ghci and nix-shell-cabal-repl support.
Update 'auto mode to consider nix-shell.
The locate-dominating-file function using a lambda doesn't work.

The function is applied to the directory name, thus string= looking
for .cabal-sandbox is not going to work.