fix issues with per-fork var directory