Add postgresql initialization script

Add `get_active_brew_dir` function to make finding the path to the
active version of Homebrew recipes simple. Update the Go
initialization script to use the new function.