doc: backward-compatible fix for doc generation w.r.t. changes in Rake
be compatible with the current doc target scheme