Control of the propagation of intense laser pulses in gas for laser plasma acceleration