a few bashisms

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>