Rules configuration improved

Added fallback to default settings if there is no initial settings file.
Improved working with paths to settings.