Fix error flag in install script