Damien Duffy's 81st minute strike secured an important three points for Finn Harps away at Longford Town.