Fixed startup crash and git commands.