restore permissions to dirs in VAR