fixed bug in build.rb