Creates build.rb and moves definitions to separate folder