Make sure we get correct number (3) from wc by specifying line count.
(cherry picked from commit f89ba4e12964b4cbe0f833d1131ea27a4da7fefc)
Add "ls" to tools list, used in 10_files/03_transform/003.cf.
(cherry picked from commit bf26abdb1bdf33d20974eb25168f0d138435afcb)
Fix sporadic failure of 10_files/03_transform/003.cf.

Don't use the same directory to hold the counter as the one who holds
the transformed files. Otherwise it may or may not be included
in the result, depending on file system order, since we use depth
search.
(cherry picked from commit 5909c367861910f80381a0d5d9f918bb04a1abb1)
Switch to egrep. "grep -E" is not portable to Solaris grep.
(cherry picked from commit b3595d75f070264f3a67e61b145dfe2360a064ff)
Soft fail test in Solaris 11 chroot env, where it cannot pass.
(cherry picked from commit 6922ecb4fd10d25fd76178abf92799b04c8409e8)