Tortoise SVN buttons

I'm referring to buttons found here in Tortoise SVN Buttons topic.

Path to file/folder is passed using {sourcepath$}{file}. I'm guessing that the advantage over {filepath$} is that it makes it possible to use the button on selected files/folders or on current folder if no files/folders are selected.
The disadvantage is that this button doesn't work when in flat view and I want to use it on a file that is in subfolder, ie. it doesn't pass relative [to flatview root folder] path of the file.

Is there any way to make it work in all three ways?

  1. operate on file/folder if I selected one
  2. operate on current folder if no items are selected
  3. operate on files/folders selected in flat view

You might be able to do it using @ifset to modify the behaviour when Flat View is enabled.