Fix for older versions of directory (where getModificationTime still returns ClockTime)
Merge pull request #1 from hamishmack/master

Makes your fix work for older versions of directory