Refactoring bash profile