Regex change if installed flag exists but is false