scripts/prepare_dist_from_git.sh: Check out requested branch and not HEAD.
Merge pull request #15 from wilx/1.1.x

scripts/prepare_dist_from_git.sh: Check out requested branch and not HEAD.