Reworked the way the installation paths are evaluated.