Get the path of the current directory in Finder (OS X) and Explorer (Windows)