Adding logic for getting the current directory from within a phar