Protect against a missing working dir.