Make rake install task depend on build instead of gem

The rake task doesn't build the Rails gem file so it couldn't be installed. The build task builds all the sub-gems and the Rails gem
Merge pull request #10465 from raphweiner/rake_install_depend_on_build

Make rake install task depend on build instead of gem