Fixing issues with the cloud directory and provider setting in the server class.