init, clone: support --separate-git-dir for .git file