refactor bash files

- probably a bad idea, but it seems a bit cleaner.
- cleaned up repeated redefinition of PATH
- removed some dusty functions