Fixed an issue where the default realm file could sometimes not be created on OS X. Reverts 54da5a.

@astigsen just ran into this issue /cc @tgoyne @alazier 
Seem silly to add the identifier and then remove it. You should just move the directory creation code up to use the path before the identifier is appended.