Avoid crash if a client program doesn't have static or static-cachable dirs.