update rails_template.rb for rails 4.x

remove the "public/index.html" file only if it exist, rails 4.x don't have this file.
Merge pull request #3353 from timoschilling/fix_rails_template

update rails_template.rb for rails 4.x