Prevented crash if directories don't exist.