Workaround exit code change for which command in pkg 1.2.x