Fix warnings, improvements to get rid of fixed paths and fixed values in the preferences system