Be sure to include OUT_DIR for doc tests
auto merge of #897 : alexcrichton/cargo/issue-879, r=brson

Closes #879