Finish detail template write build script