An alternative method for freebsd that may satisfy the autotester machine is given [here](http://stackoverflow.com/questions/799679/programatically-retrieving-the-absolute-path-of-an-os-x-command-line-app)