Only download tarballs when it do not exists;fix build error with automa...

1. Only download tarballs when it do not exists or file is no=t correct
2. fix build error with automake 1.13