Make new platform functions work on ancient bash on OS X