Allow reinitializatoin of ProjectManager singleton - fixes #787