Simon Murray and Scott Fraser were on target in the 2-0 win.
They now face Partick Thistle in the next round.