support unstandard shell
add 2>&1 when discover incdirs