fix command for users with several rails versions

For cases where users have multiple rails versions `rails _3.2.16_` select the desired one.