Tidy build_ck.rb; add tests.