A banned driver who went the wrong way along the M74 during a police chase has been jailed for nine months.