Support configuration with environment variable of the scirpt

Several path are hard coded in the configuration file, it should be managed by env variable and default value