Caterpillar shares bounced into the green after the company missed second-quarter profit expectations but beat on sales and raised its growth outlook.