Adds rule to ignore the build directory.