Fix over-eager cleaning operation.

Do not remove empty directories outside of the build tree. Artifacts can
end up there via product.destinationDirectory.

Task-number: QBS-325
Change-Id: I457400c31fa5f6e342c5479fd8e80fba8553bb13
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>