Autodetect strip parameter for the patch operation

Some patches require an other option than p0. This one will auto detect the right one. ;)
And in addition I ran in this issue cause I needed to add two patches at once and one required the p0 flag and the other the p1 flag.