fix for install path not consistent along the install script + various other fixes