(GitScripts3) fixed boolean check in checkout command