fix configuration with other build directory than top directory