fix script and ignore build directory