fix $path in regtests