Improve build script, use PATH to find cross compiler