support unstandard shell
add 2>&1 when discover incdirs
Merge pull request #6 from justmao945/devel

bug fix and adjust unstandard shell