Dynamo action in stratified convection with overshoot