misc/bash: minor updates to cdfactor script.