Refactor the install script and config
Fix policies and packages