Hi Dave,
Sorry for the delay on this issue.
Yes, i am able to reproduce the problem in Linux but not in windows. I am attaching the fix for this issue. After applying this fix, the behaviour in windows and linux are same.
Kindly let me know if i miss anything here.