Well I guess one way not to hardwire it into the program is to pass it in as an external variable... rather clumsy with the same item twice on the command line.
Sorry for the delay. The discussed function has now been added:
http://docs.basex.org/wiki/Utility_Module#util:path
Hth, Christian