The former Dunfermline Athletic midfielder stunned Montrose with a late brace - including the winner from a corner kick.