Remove the need to have PETSC_DIR defined when using the TestHarness

closes #2511

In this patch we use libmesh_common.h instead of obtaining information directly from PETSc.