Updated build script to use Ruby