Get the script running also on MacOSX 10.6.