Uniform tail asymptotics for Airy kernel determinant solutions to KdV and for the narrow wedge solution to KPZ