Adds function to update s3cfg if needed