fix auto-fork detection. Fixes #501
V10.5