I try to short-circuit awkwardness by putting my hand up to high-five people. If there's someone between handshake and hug, I've found that gesture is comfortable enough for most, explains the situation without saying anything, and gives everyone a way out. Your mileage may vary.