Fixes improper database name when creating a new rails app with a '.' 

Fixes improper database name when a '.' is included while creating a new rails
application. EG: `rails new something.awesome.com`