Updated PATH variable and enabled gem plugin

- Removed duplicates from $PATH, re-ordered entries so that precedence is sane, and removed hard-coded user directory paths (replacing with $HOME)