Minor refactorings, letting you set max seconds per fork using environment variables.