Port to centos6

CentOS6 uses git v1.7.1. Therefore 'git -C' doesn't work.
--git-dir/--work-tree seems to provide good alternative.