A goal in each half from Cillian Sheridan and Borja Perez was enough to see Kilmarnock to a 2-1 Scottish Cup victory at home to Queen of the South.