Imported os module, Fixed a bug where the preferences weren't loading properly