[CPAN-RT #82887] Incorrect handling of taint mode and search paths

These patches fixes the problems signaled in CPAN-RT #82887:
* correctly handle library search paths
* fix regexp to detect taint mode option on a shebang

» https://rt.cpan.org/Ticket/Display.html?id=82887