checkout template-specs during rpm directory initialization

Suggested-by: glen
builder.sh: refactor code to clone repositories in init_rpm_dir