Build: Filter and sort versions in gensite (fixes #1430)

I think it is better to use the semver approach so it is safe using git tags which are not semver versions.