Fixed install type detection