Fix autorun.sh so it works on both OS X (w/brew) and Ubuntu.