Allowing AAR to be built using the <genDirectory> config option.
Merge pull request #390 from william-ferguson-au/issue-389

Fix for issue #389