diff-index.c: unify handling of command line paths