Better isDevMode handling