Aberdeen eked out a late victory at Livingston in front of a near 3,800 Dons support to ensure the Scottish Premiership’s top four are split by just three points going into the winter break.