Really support building Perl modules from a separate builddir

Signed-off-by: Anders Kaseorg <andersk@mit.edu>