Implement file renaming.

Doesn't really use the second argument. I would like to generate strings
with the regex. At the moment it will take a regex in and use that to
match filenames and only changes names to a single integer. It will only
rename a test directory at the moment.