[environment] ensure pid dir exists on env load