fix appdir