Fix minor typo. Folder is checked with -d