updated Brewfiles to be shell scripts and fixed sync bugs