Refactor installer
Move to safe install
Fix ruby installing