Don't completely ignore submodules

Ignore a dirty work tree, but not a wrong HEAD; this makes it impossible
to update submodules.

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>