Fix foreman build cache handling