Use plumbing commands and -z tests