Working on issue #143

Trying to fix the logging problem when you don't have write access or
the logging folder doesn't exist