Fix saving files in dataset tools for linux