Revert only to dirs, that have the name as they would be timestamps.

Better safe than sorry.
Merge pull request #1 from brodul/safe_revert

Revert only to dirs, that have the name as they would be timestamps.