Fix folder deletion logic

With delete0 set to 0, the script deletes all hourly backups before they are rotated to the daily folder. Repros 100% when run in cygwin.