Do the install detection with regexp.