editor: better path support for mac