Fix Darwin/Windows issue with task scheduler server load function