Cleaner: allow non-empty paths to be pruned from cleaning
glassfish 3.1.2.2

Closes #14744.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>