Hash the patch directories better.