The build script now pulls all tags; looks for the new main file used by the Rails 4 documentation; and uses the correct relative path when checking whether documentation is already built for a particular version.