gtools/img: check whether module nbd is correct

Signed-off-by: Dunrong Huang <riegamaths@gmail.com>