do not update brew in read only mode, fix #1630