adding not_if to directory resource