Moar BASH fixes