fix #24 : for build-apigen: cannot pull while in detached state. Force c...

...heckout to master before pull