* Update: capture a stable cwd for service refresh env * Test: cover service refresh when cwd disappears