Fixes to configure script

Stray $PETSC in make.config.in created invalid makefile
when a PETSC directory was specified