Use err_exit in dx_build_app