dh make perl and sudo

dh-make-perl fails when run through sudo:

sudo dh-make-perl --cpan IO::Socket::SSL
...
Use of uninitialized value $orig_pwd in chdir at
/usr/share/perl5/DhMakePerl/Command/make.pm line 281.

Running as root works though.