Ignore prerelease versions if possible, fixes #1017
Merge pull request #1029 from sheerun/semver

Ignore prerelease versions if possible, fixes #1017