Filter the versions when getting the latest version

Sort of fixes #51 I guess.