More robust watch-modifications

so that *.lastmodified symlink always points to the most recently
modified file.