check if directories are present