Ok, I have a suggestion to the script.
I would make the whole process less automatic, meaning, no need to access the internet to get the files, this for the reasons:
 - sometimes you need a different file from these - in my case , for my tv box I will need a different script.bin. Also, I use a different uImage.
 - sometimes you have no connection / connection can break and mess the whole setup
What do you think?