fixed bug with PATH getting appended repeatedly