Add support for file renaming

It's a bit of pain that plugin did not allowed to use output option.
This PR changes that.