Fix directory creation in dotrcfiles sync command