takes a list of possible perl versions and returns the latest stable