Fix sdk version logic