Yes, that sums up the problem well :).
I was not sure how can I get the info that the first script prints out and I wasn't sure if it was a feature.
So I didn't consider it and went with checking the dates of the folders, which is not as good of an option.
This sounds like the solution I am searching for I will try to implement it.
Thank you very much for the help.