Set LIBPCREDIR if brew command available
Set LIBPCREDIR if we're on a platform that provides the brew
command. This will mean that git
will be compiled cleanly on macOS arm64 in the context of GDK and when compiling as part of running rspec
tests within the gitlab project.
Edited by Ash McKenzie