If available, load socket basename from calling environment

The environment variable to query is loaded from:
   config.main.basename_variable