Made autoloader work within Phar files

realpath() has issues when executing inside of a Phar.
I also simplified the autoloader code.