Better installation detection