Sourcing scripts under bash_completion.d for bash completion mechanism.