match loose and semver versions at once to get matches in the correct order

fixes sindresorhus/grunt-php#36
1.1.0