Fix EOL cross platform BUG

Signed-off-by: Richard Lea <chigix@zoho.com>