Use the same directory object for user and file permission lookups.  Closes #132.