Add -s /bin/sh to su command for git and hg