core-util: add call to detect if we are called from within a VM