updated post: How to add a set of directories to environment variable $PATH on a mac?