misc.create_file: if sudo, must sudo for chmod as well.

Signed-off-by: Dan Mick <dan.mick@redhat.com>