Fix arguments to hostname shell error

Hrm. You're right, this is wrong, but shouldn't it be `proc.returncode` ?