CORE-5368: Fixed a typo in the permissions.clj file.

We were calling set-permissions instead of the set-permission.
CORE-5368: Fixed a funky donkey (cond) that was failing on first login.

We weren't first checking for the directory's existence, so the call was
failing when validations were fired.