realpath return false when using the script in a phar file.
Fixing realpath issue when using command in a phar

Applying suggestions.
Merge pull request #439 from jmontoyaa/patch-2

realpath return false when using the script in a phar file.
Add missing LICENSE of documentation