realpath improved