test $(busybox dirname /foo/bar/baz) = /foo/bar