Only define APP_DIR once