builtin/commit.c: use xstrdup_or_null instead of envdup