Refactor installer.sh
+ Modular distro function