HF RL Explorer

emmctool: fix the backup output and make write/resize more robust

emmctool: fix the backup output and make write/resize more robust: a task in github-trending-environments-10k (Harbor dataset). Title: emmctool: fix the backup output and make write/resize more robust

The task

**Title:** emmctool: fix the backup output and make write/resize more robust

Part of scalingX/github-trending-environments-10k.