Fixed YUMSTATUS variable as it was being set to the return code of mktemp instead of yum check-update