remove some duplicate codes between project-create and project-open.

Now, creating a new project will result in writing the project file on
the hard drive and then opening it.