Sean Dyche says it was an ugly game but was delighted Burnley kept going, clinching a late winner against Stoke.