realpath is unreliable