Changed string concatenation to os.path.join when saving files.