The `\@currname` was just a placeholder. To get the full path of, say, the current main file, one has to use a different strategy than with `kpsewhich`:
`"find `pwd` -name \jobname.tex -print"`
Instead of `\jobname.tex` one can use other things from currfile. Of course this is only for Unix, but maybe there's something also for Windoze.