correctly call editor on paths containing spaces (osx)