As I said before this is my quick and dirty solution to a problem I faced. For sure there are lots of options and improvements like: environ variables, no args, don't parsing the whole file, etc... I didn't gave myself the time to think about then. Please contribute to the community.
The real issue here is that Tiki evaluated my ARGV as a web link which is wrong. I don't know how to fix this, it should be easy. If anybody know please fix it. Meanwhile, please get the script from the tiki source. Sorry for that.
I'll try to find time to think about the sugestions and post a revised script later.