Try [info nameofexecutable] as a compatible shell before searching PATH.

Also prompt user before actually installing.
And check inodes so as to not test the same shell multiple times.