Aberdeen consolidated second place in the Scottish Premiership as Willo Flood's spectacular late strike earned a 1-0 win over Hibernian.