fix wrong path and checkout branch while cloning