Add regression test for build directory handling to make lint target