First-half goals from Steven Milne and Ryan Conroy booked Dundee's place in the fifth round of the Scottish Cup with a 2-0 victory at Livingston.