Fix OS X makedist.sh script