Fixed a typo (aDir => appDir)

I think this must have been an artifact of an older version of the code where the `appDir` variable was called `aDir`