Raise security error if path contains a hidden file or dir