Handled the situation when obs, pages, vars directories can be empty