baking to external file

Does baking to an external file work? I tried setting save_mode to ‘EXTERNAL’ and filepath to “/tmp/bake.png” and it ignored it and baked to the internal image. This was using cycles.