fix bug in unit tests caused by buffer overrun
make qsub_task work with regex under clang