Improved the retrieval of the current working directory for passing to the configuration service