Check for valid shell in `shell-init`

Code and instructions currently only work for bash-like shells that
use `eval` and `export`.