Copied install script from main railgun branch