Separate common stuff out of tddbin-standalone specific file.