added build.rb to _config, modified pub script