Adding a little trick so `tmux` doesn't munge the `$PATH`

Also making `append_to_path` and `prepend_to_path` more accurate.

[ci skip]