CFY-1049 don't use realpath