[TS-2728] The lib/perl Makefile.am does not properly detect in-source builds, generating errors.