fix subdir build paths