This is some minor API cleanup that will make it easier to use `AbsolutePathBuf` in more places in a subsequent PR.
This fixes #7995