Make `rake doc:guides` works again.  Fix #10384.

Fix bug #10384 since `guides` has been moved to be under `rails` gem directory.