fix missing realpath