A new front condition for non-Boussinesq gravity currents