Make script a bit more rubyisc. Trailing if/unless. Multi-line blocks with begin/end, not {}.