Merge pull request #12048 from tjouan/app_generator-bin_perms-umask

Comply with current umask when generating new app
Conflicts:
	railties/lib/rails/generators/rails/app/app_generator.rb