Fix: typo directory check