cmd/dist: prevent race on VERSION creation
cmd/dist: prevent race on VERSION creation

Commands such as "dist version > VERSION" will cause
the shell to create an empty VERSION file and set dist's
stdout to its fd. dist in turn looks at VERSION and uses
its content if available, which is empty at this point.

Fix that by ignoring VERSION if it's empty.

Also prevent cmdversion from running findgoversion a
second time. It was already loaded by init.

R=adg, gustavo, rsc
CC=golang-dev
http://codereview.appspot.com/5639044

Triskite/willstone-goclone,Triskite/willstone-goclone,Triskite/willstone-goclone,rflanagan/reginaldflanagan-project1,bryanxu/go-zh,rdp/rogerpack2005-golang,bryanxu/go-zh,d0f/go-zh,mhennings/marcohennings-go,glycerine/jeaten-go-arrayof-structof,d0f/go-zh,webfd/go-zh,Triskite/willstone-goclone,glycerine/jeaten-go-arrayof-structof,webfd/go-zh,Triskite/willstone-goclone,mhennings/marcohennings-go,sanjosh/sanjos100-tipc,rflanagan/reginaldflanagan-project1,d0f/go-zh,rdp/rogerpack2005-golang,Triskite/willstone-goclone,scirelli/scirelli-go,webfd/go-zh,sanjosh/sanjos100-tipc,scirelli/scirelli-go,scirelli/scirelli-go,glycerine/jeaten-go-arrayof-structof,Triskite/willstone-goclone,rflanagan/reginaldflanagan-project1,glycerine/jeaten-go-arrayof-structof,rdp/rogerpack2005-golang,sanjosh/sanjos100-tipc,glycerine/jeaten-go-arrayof-structof,bryanxu/go-zh,webfd/go-zh,mhennings/marcohennings-go,Triskite/willstone-goclone,glycerine/jeaten-go-arrayof-structof,webfd/go-zh,rdp/rogerpack2005-golang,glycerine/jeaten-go-arrayof-structof,d0f/go-zh,rflanagan/reginaldflanagan-project1,rflanagan/reginaldflanagan-project1,mhennings/marcohennings-go,mhennings/marcohennings-go,mhennings/marcohennings-go,rdp/rogerpack2005-golang,sanjosh/sanjos100-tipc,scirelli/scirelli-go,sanjosh/sanjos100-tipc,d0f/go-zh,scirelli/scirelli-go,webfd/go-zh,bryanxu/go-zh,rdp/rogerpack2005-golang,webfd/go-zh,rflanagan/reginaldflanagan-project1,sanjosh/sanjos100-tipc,d0f/go-zh,d0f/go-zh,bryanxu/go-zh,rdp/rogerpack2005-golang,bryanxu/go-zh,rflanagan/reginaldflanagan-project1,d0f/go-zh,rdp/rogerpack2005-golang,bryanxu/go-zh,scirelli/scirelli-go,rflanagan/reginaldflanagan-project1,webfd/go-zh,bryanxu/go-zh,mhennings/marcohennings-go,mhennings/marcohennings-go,scirelli/scirelli-go,sanjosh/sanjos100-tipc,glycerine/jeaten-go-arrayof-structof,sanjosh/sanjos100-tipc,scirelli/scirelli-go