Add some smarts to the system-bash so it doesn't try to run jq unless ~/.docker.../config.json exists. Look for similar issues in the script.