Adding an extra check to avoid trying to change uuid on a directory (etc/grub.d). Needed to fix an issue with issue #221