Added debug.error() and fixed magical bug in checks for util.debug() availibility