Make git-prune submodule aware (and fix a SEGFAULT in the process)