Fix gensigs creating large amount of signature files due to loop