It's not rake that has to go in, but the extras/ script (deep inside the discovery gem installation) that the rake task calls, plus cpio and /bin/true.  I'll try updating it to do this.