Aberdeen moved second in the Scottish Premiership table after Mark Reynolds netted a late goal to beat Kilmarnock 1-0 at Rugby Park.