Properly generate new projects [fixes #33]