change path.resolve() to path.normalize() on before() items