Save us from a global $file
Deal with Phar symlinks.