Make Rakefile work with older versions of rake

Use Ruby's respond_to? method to check that the markup method exists on RDoc before attempting to invoke it.