Update the logic of opening project from terminal.