Cleanup scripts, add debug and update flags and save the vendor information in git