don't reach out to globals in retrieve-config
configuration refactoring

Move workspaces-path to environment var
Internal rename of e.g. cu-max-wait to queue-max-wait