extracted build_command! and run_command from Worker#execute