enter rails root after creating ruby gemset and version files

We need to enter the rails directory after creating .ruby-gemset and .ruby-version so that these files are actually used.