Fix realpath