realpath(): don't pass NULL as resolved_name

* passing NULL as resolved_name is not allowed on some systems
  (OS X 10.5, Solaris 10).
Merge pull request #176 from mklein-de/master

realpath(): don't pass NULL as resolved_name