Clean up file dependencies

Now they match the ones generated by other tasks, notably the
dependencies based on RUBYGEMS_DIR and Rakefile which were created by
the rdoc task.