Adding command execution hook to tenacity bundle builder

Optionally registers the execution hook if it was set by the builder