Moved cache update to post install, fixed to use #{HOMEBREW_PREFIX}