Optimized main install script