Fix bug with installation check