(maint) Simplify File Write Action

Prior to this commit, writing the facter data to a file was a bit more
complicated than it needed to be. This commit simplifies that action.