Make bash enforce some sanity checks