Attempt to set log directory as an environment variable