pcre: fix removal of docs

This fixes issue #487.