uppgrade package checking on osx brew
extract brew requirements to osx_brew