Fix wrong checking of empty directory when creating bare repository

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>
Bring back templates when creating repository with libgit2

It was "cancelled" since TortoiseGit 1.8.0

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