Fixed two bugs: creating project without dir name and switching current project.