Fix a bug in dotrcfiles sync command