Use correct value for HOMEBREW_PREFIX in build environment

/cc @adamv @mistydemeo

I think this is correct, but would appreciate someone checking my work.