Fix phar files.

Include missing functions.php from berberlei/assert. It is included in autoload_files.php so running the phar file will fail if it is missing.

Update build script to test that the phar file is working when creating a release.