A few cleanups: remove tmp dir on failure, ignore data in repo dir, tabs to spaces.