define plugin dir - fix
app config loading - fix