fixing "install" option

hasOption returns always true for hasOption