Translate OS X / Windows file URLs to directory paths