rcrestore: enforce sudo, fix 'bad system call' bug
rcrestore: enforce sudo, fix 'bad system call' bug

- Better error checking
- Code quality
RocketChat/rocketchat-server-snap,RocketChat/rocketchat-server-snap