Bash functions cleaning

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