scanDir script