Fix broken links to NCML documentation.

We lost the v2.2 directory, so update the links.
Fix sporadically failing test.

This was failing occssionally on Travis. For some reason there are times
that the directory does not exist, so check for it and create if
necessary.