0.4.0 pre-release changes (add PHAR and fix log)