Fix Bug #733393 - Fails to run on GNU/Hurd

reverts BSD changes to use realpath with NULL (which allocates the path)

Patch by Pino Toscano