Merge pull request #410 from pkg/export-realpath

Export RealPath for potential client use