Revert commit cbc417c, as the code is broken, see #438

LooseVersion expect a string, so filtering to return a int
is incorrect. Thanks to Jeremy Brown for the analysis.