Compatibility fix with latest Metalsmith