Add "existsSync" before read dir