Rewrite ci-stemcell-build.sh

Extracted bosh checkout into fetch_latest_bosh function.

Signed-off-by: Adam Stegman <astegman@pivotallabs.com>