Fix dataset tools for linux