Change dir struct and use Phar