Now works for Norwegian OSx

Hi.

Please have a look, and see if the script still runs for you.  I've simplified it a bit and also made it compatible for my Norwegian install of OS X Mountain Lion