Support build in other directory