Fix realpath usage.