Running texhash showd that texmf-local was not included in the search path. I fixed common.sh so that it would notice when TEXDIR is changed, and not keep the ".." in the TEXMFLOCAL path. Thanks.