Fix generate error when .gitignore is missing.

The Rails generator errors out when there is to .gitignore file.
This creates it if it's missing.

Fixes #35