use tail -n1 instead of grep /var

If the filesystem is mounted on / and not on /var.