Hearts manager John McGlynn was pleased to be able to call on an experienced bench after his side hit a late winner to see off Dundee 1-0.