build: could not find remote branch fix

* It's a quick fix described in
  https://github.com/drone/drone/issues/284