[WIP] Cleaning bash function

This pull request will solve two issues:
- [ ] #68 (Refactor BASH code in order to remove uneeded code)
- [ ] #69 (Variables in the bash installer)

Work in progress...