Fixing #523 with a rdoc --exclude param

This fixes #523 with a rdoc --exclude param. Tested with Ruby (MRI) 2.0.0-p247.