[WIP] Refactor Mac installation

Using "displayAndExec" and "displayTitle" functions.
Fixing some bugs