readdirSync externalized