fix the error with build dir