Adjustments to kochiku-build.sh.sample

* more dependable method for getting the current branch
* simpler method for getting remote url. Assumes remote name is origin.

R: @cheister