Check the CredentialStore state before fetching creds again.
Minor Cleanups.
Added default argument to terminateSyncProcess
Fix backup name generation.
Check for emptiness before backuping the entire dir.
Handle rename fails for backup reasons correctly.