Adding mutex to `command` to prevent multiple parallel executions to modify each others env variables.
Adding --git-dir and --work-tree options to the git commands to prevent parallel executions to move the current working directory in the middle of each others process

related to #181