I have tested the script a few minutes ago. Without any problems. I can't find any error. Just try to install XMM again. If that doesn't solve your problem we have to search for another reason.
In order to achieve what is possible, you have to try the impossible over and over again. Hermann Hesse