Check if folder exists in tagging

Fixes #3069
Merge pull request #3070 from mano3m/develop_fix_ignore

Check if folder exists in tagging