Added check for install prefix if dist root not set