Update 'auto mode to consider nix-shell.