Switched to simpler version detection