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.
Merge pull request #512 from mscherer/fix_438

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