bin/prepare: Return YAML-formatted hash

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