Ignoring tar files.
Added some robustness checks to scripts.