harden googlecode upload script