build: patches: only complain when the patch is a file, not a dir