more robust docker cli detection