don't give up the build directory search too early
Merge pull request #12 from czw/master

don't give up the build directory search too early