Use pathname for file loading
Always convert envoroment to string
Raise error when settings file exists, but is not readable