bin/prepare: Return YAML-formatted hash

This makes the output consistent with bin/release and allows for
extensibility in the future.