Added support, tests for tilde version ranges
Added tests for & improved handling of invalid version numbers.