move implementation of Phar::running out of native code