If running on Win XP or Vista, use a smaller command line max length

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>
Initialize local variable, otherwise when ReaddUnselectedAddedFilesAfterCommit enabled, sometimes only first file can be re-added

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>