ensure build dir before logging