Switch to the function syntax supported by dash (which is what /bin/sh links to on modern Ubuntus). (@justinvdm)