Improve Preferences class write method
Improve Preferences class write method

It first checks if the parent directory exists. If it does, it'll write
the file. If the parent isn't a directory, it'll delete the parent.
Finally, it creates a new parent and writes the file.

alessandrostone/Menubar-Colors,nvzqz/Menubar-Colors,alessandrostone/Menubar-Colors,nvzqz/Menubar-Colors