Fix bash-completion for config-dependent IDs in arcctl
Begin arcbot message
This merge request is automatically copied from !473 (merged) orginally made by @andrii
End arcbot message
Since defaults/runtimeconfig rework, bash-completion mode of arcctl
lacks this proper defaults integration, failing to obtain the config-dependent IDs (like jobIDs or RTE names).
Now same parsing code moved to ControlCommon
and used by both competion and execution modes.