fix PATH changes so that we don't keep duplicating entries, and add entry for Packer