modified paths in run_petscinv