Implement dl_get_path for darwin (macOS)