Make install script exit on errors and fix mysql bug