[fix] use the reduce-dir npm package so we dont need to include it