Greg Leigh signs extension and will stay at Aberdeen until end of season