Fix unresolved variable issues in Forking.pm