Prevent duplicate projects, fixes #345