chore(clone): change clone branch logic

- change clone branch logic because it does'nt work when the remote branch is missing.