fix issue for separate build dir