be more flexible in discovery doc path
Merge pull request #823 from shackbarth/mocha

be more flexible in discovery doc path