Fixing function call to no loner depend on bashism