Fix bug on Windows in the edit command

`open` does not exist on windows.
This commit fixes the bug by selecting `start` or `open` according to the OS.