fix git support for v1.5.3 (or higher) by setting "--work-tree"