is_submodule_modified(): fix breakage with external GIT_INDEX_FILE