Fix out-of-tree build with relative path to root