detect in build dir