Made tarFiles gz compatible

Added gz feature to tarFiles and corrected output dir to the final
backup file