fix detection of realpath/grealpath