fix install script to run from Finder

Make install script change to its directory before doing anything,
because Finder doesn't change the current directory.