Fixed issue with cleaning deep dir structures

Order matters when recursively deleting directories, for one
project kept getting:
"An error occured in task The directory is not empty."
solved this by recursively deleting bottom up, it might be a bit
slower, but ensures delets are done in correct order.