Fixed private settings to work both with environment variables or again with local settings