Thank you so much, I wish I have found this few days back, it would have saved me a lot of wasted time to figure out a solution. Anyway, I am glad I found this in the end - worked like magic

) The only issue I had is that I had to run it few times, until the script was able to go through all files, because it seems that server wasn't able to take the load. My advice is wait for less active time on your server to run the script and you won't have any issue.