renames files in a directory