added check for tags file in all parent directories