Mauricio Dubon’s pinch-hit HR caps Astros’ rally, sinks Pirates