fixed version detection bug (eugh)