use better variable for finding build directory