Look in PETSC_DIR/PETSC_ARCH as well as PETSC_DIR
Try importing petsc before looking at PETSC_foo envvars