added phar distribution support