Fix path to build dir in assertion

`Path() / "/build"` results in an absolute path `/build`, which is not
what is meant to be checked for.