Update factory*-ubuntu scripts to user -O option of ctest