Added validation of the installation directory.