Improved PHP_SELF check for CLI

Improved PHP_SELF check, this should make it work in case the file is stored in a diferrent directory; e.g. bin/Spyc.php