updated scan library to support v2 beacons

Change the order so you get the V2 if both version are present.