Changed patch command for MADNESS to use a script.