A Swindon man has been jailed after dangerously attempting to evade police in a vehicle containing drugs and a machete.