Don't use bash to read key.

After security-updates to bash it's no longer possible to store
functions in envirinment.  This patch replaces use of bash to read a
single key from tty with the perl-module Term::ReadKey