Elastic and electronic tuning of magnetoresistance in MoTe2