Moved build script into bundle