Use a shell variable to define the logs location

Make it easy to control where the logs are output using an environment variable, or rewriting the value in the startup script.