[installer][host] fix chown to use file descriptor