Rewrite with node-glob