Detect real path to find the Perl script