More robust mtime finding