fix: #340 adding is directory check for each files in component folder