Fix APP_DIR for phpunit