allow passing AC_PATH from environment

Allow picking up AC_PATH from the environment. The Homebrew formula will be updated to pass this along, rather than needing the script to query `brew` for its actual share path.