Auto detect bash-compatible shell and try to use the best supported

Merged Kamil Trzcińśki requested to merge auto-detect-shell into master

We try to load: bash or sh checking the /usr/local/bin, /usr/bin and /bin.

/cc @tmaczukin