Fix return always true in install tool