When editing a new file (doesn't exist in the parent directory), open the directory.

`open -R` does not work if the target file does not exist.

In that case, this pull request makes it open the parent directory instead.