fix(writeFile): Detect `options` argument