brew: Fixed a bug with remote repository builds