rewrite strverscmp because the old one was broken