When orig_pwd is not set by CPAN falback to one defined by dist (this is related to bug #815390)
In some flows (with sudo without or -s ) , CPAN would not set the expected varibales.
I had incorrectly closed bug #815390, this MR fixes it for cases when sudo is run alone.