fixing faulty interaction with the Perl debugger when started from command line