Add gen script with nicehash patch