Better install check code