Motherwell bounced back from a tough defeat before the international break to beat Kilmarnock 2-0 in the Scottish Premiership at Rugby Park.