fix path in phar, add app directory to phar