Fix: Perform the check if a folder should be skipped at the right location