Nearly £500,000 of Lottery cash to be split among Dumfr