simplified a bit and script didn't work on Norwegian OS X
Merge pull request #1 from fmmr/master

Now works for Norwegian OSx