Fix workspace directory for git repos.