The dash shell fails to implement local command properly, and errors out in case such simple as "if ! local foo; then ..."