added mac support, added os detection, better print messages, added reboot cron job