nixos/grub: Catch errors from command execution