remove unneeded brew packages
create LaunchAgents directory if it needed
recover from brew cask install failures