fix: bashisms and migrate beagle to v2013.04

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