Fixed realpath