options.filename was always undefined. Use a proper fallback