Fix $PATH handling without relying on sourcing mechanics