When creating the configuration file during the initialisation process calculate the absolute path to the credentials file instead of the relative path.