Move restore file to backup when running sub-commands with samus-build
Add trap on removal of temporary directories for proper cleanup