Generate addins directory.

This pull request fixes #1899. For some installations, the addins directory specified by the Revit addin utility will not exist. Previously this occurred when a version of Revit had been installed, but not run. This change, checks for the specified directory and generates it if neccessary. 

There is one potential problem here. The Revit team has recently noticed that the addin utility will return "Unknown" for the addin directory if they haven't yet added the revit version to the table of versions that the addin utility uses to generate the directory name. The worst case is that we generate a directory called "Unknown", and later generate an appropriately named directory when the addin utility is updated.

For @lukechurch to review.
if dir == null something has gone quite badly wrong?

it might be worth just asserting that dir != null, rather than using it as a condition - where if it was null we'll probably get a failure further down the line?