Minor bash improvements