Derek Mackay: Scottish government defends handling of scandal