tidy-up PATH building

* remove an unnecessary export statement
* append to the variable more succinctly
* only append directories
anchor user