Updated how version is extracted for snapshots to use 'latest' element in maven metadata