Add some shell flavor detection
Modified repeat to work with bash, ksh, and zsh