It's definitely a problem with your setup, since you are the only one complaining about a basic feature like this in this forum. I have the script, I've seen the code and it works.
It have some flaws like I mentioned in other topics (like leaving files in the _tmp folder sometimes) but those...