Fix sub utility on Mac OS