stack-checker.dependencies: use short-circuit better.
use concat instead of join.
Minor fix to make sure strings are produced.