oh-my-fish.fish: add helper function to test directory

- existence of dir
- and also if it is already in the path list
oh-my-fish.fish: remove unneeded code