added some linux detection to the worker