improve(util): make version logic work with SNAPSHOT versions