Fix installation type checking.