Set mindepth on find cmd for the cleanup directories function so it would not delete the root dir of the backups.