fix float point number comparison in install_*