Fix the version detection regex for snapshots