check for release or snapshot and get latest appropriate version