fix realpath not found