workaround for OSX (wait for mtime to change)