corrected "get path" functionality in Finder when no finder window is open