readlink work-around for BSD.   system detection