Added support for unix path to preferences and also fixed logs dir creation bug.