INSTALL.sh: exit code value for check fixed and run check before all other operations