grub: analyse returns (file to modify, new contents) or None

Signed-off-by: David Scott <dave.scott@eu.citrix.com>