ref realpath-osx implementation for sadness