Support Rainbow gem both 1.99.x and 2.x

This fixes #762.
Merge pull request #763 from yujinakayama/support-rainbow-2

Support Rainbow gem both 1.99.x and 2.x