fixed install dirs and cmake variables