Install script remake

complete rework of the install script, it should now be much more
flexible