fixed psfind to use the array of patterns correctly.