BIGTOP-1551: fix removing output dirs with symlinks to system dirs

Signed-off-by: Konstantin Boudnik <cos@apache.org>