Add build support for a phar file; minor bug fix.