I have pasted it here: http://pastebin.com/a645PLLv
I did some quick tests myself and it does the job perfectly.
My eventual goal is to see whether I can package UMS into a standard debian package for Ubuntu and other derivatives. This way its easier to install and perhaps updates can be pushed ...