Fix NPE in version command