added options for dry-run and to rename directories