Fix test.sh to account for pid-based cnf file