More robust method to get the path to peverify