Fix broken support for Bourne-like shells.