tools/file: If we're already root there's no need to sudo
tools/file: If we're already root there's no need to sudo

This also fixes a bug where some containers don't have 'sudo' installed.

adamdecaf/cert-manage,adamdecaf/cert-manage