Check whether user-supplied path is a rust doc directory