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