path checking + directory name typo fix