modules.lxc: expand $PATH on the container instead of the host

This is offerred as a simpler alternative to #16243. The end effect should be the same.